package com.yzd.learnjava.concurrency;

import com.yzd.learnjava.util.Print;

public class Fat {
	private volatile double d ;
	private static int counter = 0;
	private final int id = counter++;
	public Fat() {
		for(int i = 1 ; i < 10000; i++) {
			d += (Math.PI + Math.E) / (double)i;
		}
	}
	public void operation() {
		Print.print(this);
	}
	
	public String toString() {
		return "Fat id : " + id;
	}
}
